﻿Imports System.Windows.Data

Public Class TableStateToIconConverter
    Implements IValueConverter

    Public Function Convert(value As Object, targetType As Type, parameter As Object, culture As Globalization.CultureInfo) As Object Implements IValueConverter.Convert
        Dim State As Boolean = CType(value, Boolean)
        If State Then Return "/OMANE.Modules.PMT;component/Images/IconeTrue.png" Else Return "/OMANE.Modules.PMT;component/Images/IconeFalse.jpg"
    End Function

    Public Function ConvertBack(value As Object, targetType As Type, parameter As Object, culture As Globalization.CultureInfo) As Object Implements IValueConverter.ConvertBack
        Throw New NotImplementedException()
    End Function
End Class